package com.silverhaze.web;

import com.silverhaze.web.data.wot.WoTPlayer;
import com.silverhaze.web.wot.WoTStatisticsParser;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 * User: Babanin
 * Date: 25.11.11
 * Time: 23:54
 */
public class WoTStatisticsParserTest {
    public static void main(String[] args) throws IOException {
        StringBuilder fileContent = new StringBuilder();

        String line = null;
        BufferedReader reader = new BufferedReader(new FileReader("data/wotStatistics.htm"));
        while((line = reader.readLine()) != null){
            fileContent.append(line);
        }

        WoTStatisticsParser.ParserContext parserContext = new WoTStatisticsParser.ParserContext(new WoTPlayer(), null, null);
        WoTStatisticsParser.parse(parserContext, fileContent.toString());

        System.out.println("xxx");
    }
}
